package com.lb.jwitter;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.ForeignKey;

@Entity
@Table (name="tbl_thongtin_hocvien_dtb")
public class Tbl_ThongTin_HocVien_DTB implements Serializable {
   private static final long serialVersionUID = -1989579066723007050L;

   private Long id;
   private Tbl_ThongTin_HocVien hocVienId = null;
   private String maHocKy;
   private Double diem;
   private Double dTBTichLuy;
   private Double dTBTichLuyNganh;
   private Double tCTL;
   private Double tCTLNganh;

   @Id
   @GeneratedValue
   public Long getId() {
	    return id;
   }
   public void setId(Long id) {
	    this.id= id;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="HocVienId")
   @ForeignKey(name="FK_tbl_ThongTin_HocVien_tbl_ThongTin_HocVien_DTB")
   public Tbl_ThongTin_HocVien getHocVienId() {
	    return hocVienId;
   }
   public void setHocVienId(Tbl_ThongTin_HocVien hocVienId) {
	    this.hocVienId=hocVienId;
   }

   public String getMaHocKy() {
   	return maHocKy;
   }
   public void setMaHocKy(String maHocKy) {
   	this.maHocKy= maHocKy;
   }

   public Double getDiem() {
   	return diem;
   }
   public void setDiem(Double diem) {
   	this.diem= diem;
   }

   public Double getDTBTichLuy() {
   	return dTBTichLuy;
   }
   public void setDTBTichLuy(Double dTBTichLuy) {
   	this.dTBTichLuy= dTBTichLuy;
   }

   public Double getDTBTichLuyNganh() {
   	return dTBTichLuyNganh;
   }
   public void setDTBTichLuyNganh(Double dTBTichLuyNganh) {
   	this.dTBTichLuyNganh= dTBTichLuyNganh;
   }

   public Double getTCTL() {
   	return tCTL;
   }
   public void setTCTL(Double tCTL) {
   	this.tCTL= tCTL;
   }

   public Double getTCTLNganh() {
   	return tCTLNganh;
   }
   public void setTCTLNganh(Double tCTLNganh) {
   	this.tCTLNganh= tCTLNganh;
   }
}//endClass 

